﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:myBoard_App_Portfolio="clr-namespace:myBoard.App.Portfolio"
	x:Class="myBoard.App.Portfolio.WelcomeSection"
	x:Name="UserControl"
	Width="657" Height="284">

	<UserControl.Resources>
		<ObjectDataProvider x:Key="PorfolioDataSource" d:IsDataSource="True" ObjectType="{x:Type myBoard_App_Portfolio:Datas}"/>
		<DataTemplate x:Key="MyProjectsTemplate">
			<Border HorizontalAlignment="Stretch" Margin="0,0,0,2">
				<Image Cursor="Hand" Width="Auto" Height="59" Stretch="UniformToFill" Source="{Binding Path=ThumbSnapshot, Mode=OneWay}" HorizontalAlignment="Center" Margin="3,3,3,3" VerticalAlignment="Center"/>
			</Border>
		</DataTemplate>
		<SolidColorBrush x:Key="ListBorder" Color="#828790"/>
		<Style x:Key="LastestProjectsListbxStyle" TargetType="{x:Type ListBox}">
			<Setter Property="Background" Value="{StaticResource {x:Static SystemColors.WindowBrushKey}}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ListBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Foreground" Value="{StaticResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
			<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
			<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ListBox}">
						<Border SnapsToDevicePixels="true" x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1">
							<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Visibility="Visible" Width="171.5" Height="248"/>
						</Border>
						<ControlTemplate.Triggers>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Background" TargetName="Bd" Value="{StaticResource {x:Static SystemColors.ControlBrushKey}}"/>
							</Trigger>
							<Trigger Property="IsGrouping" Value="true">
								<Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>

    <Storyboard x:Key="GetIn" BeginTime="00:00:01">
      <DoubleAnimation Duration="00:00:00.50000" DecelerationRatio="1" Storyboard.TargetName="UserControl" Storyboard.TargetProperty="(Canvas.Top)" From="284" To="0"/>
    </Storyboard>
		<Style x:Key="ListBoxItemStyle1" TargetType="{x:Type ListBoxItem}">
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
			<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
			<Setter Property="Padding" Value="2,0,0,0"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ListBoxItem}">
						<Border SnapsToDevicePixels="true" x:Name="Bd" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" Margin="0,13,0,0" BorderBrush="#339E9E9E" BorderThickness="1,1,1,1">
							<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
						</Border>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</UserControl.Resources>
	<Border Height="284" BorderBrush="{x:Null}" BorderThickness="0,3,0,3" Width="653" Background="{x:Null}">
		<Canvas x:Name="_real" Width="653" Height="278">
			<Label d:LayoutOverrides="Width, Height" Content="WELCOME TO MY PORTFOLIO" FontFamily="Impact" FontSize="20" FontWeight="Normal"/>
			<TextBlock Width="303.7" Text="Bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla" TextWrapping="Wrap" Canvas.Left="19" Canvas.Top="39" x:Name="_description"/>
			<Border Width="185.5" Height="31" BorderBrush="#FFFFFFFF" BorderThickness="2,2,2,2" CornerRadius="0,7,0,7" Canvas.Left="467.5" Canvas.Top="-2">
				<Border.Background>
					<RadialGradientBrush GradientOrigin="0.498,0.612">
						<RadialGradientBrush.RelativeTransform>
							<TransformGroup>
								<ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="1.411" ScaleY="1.789"/>
								<SkewTransform AngleX="0" AngleY="0" CenterX="0.5" CenterY="0.5"/>
								<RotateTransform Angle="0" CenterX="0.5" CenterY="0.5"/>
								<TranslateTransform X="0.02" Y="-0.574"/>
							</TransformGroup>
						</RadialGradientBrush.RelativeTransform>
						<GradientStop Color="#FFA8DFFF" Offset="0"/>
						<GradientStop Color="#FF3B6BBF" Offset="1"/>
					</RadialGradientBrush>
				</Border.Background>
				<Label HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Center" Content="LATEST PROJECTS" FontFamily="Calibri" FontWeight="Bold" Foreground="#FFFFFFFF"/>
			</Border>
			<ListBox DataContext="{Binding Path=MyProjects, Mode=Default, Source={StaticResource PorfolioDataSource}}" x:Name="_lastestProjects" Width="175.5" Background="{x:Null}" BorderBrush="{x:Null}" ItemTemplate="{StaticResource MyProjectsTemplate}" ItemsSource="{Binding Path=MyProjects, Mode=Default, Source={StaticResource PorfolioDataSource}}" IsSynchronizedWithCurrentItem="True" Style="{StaticResource LastestProjectsListbxStyle}" HorizontalContentAlignment="Center" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled" Height="260" Canvas.Left="469.5" ItemContainerStyle="{DynamicResource ListBoxItemStyle1}" Canvas.Top="18"/>
		</Canvas>
	</Border>
</UserControl>